const mongoose = require("mongoose");
const Schema = mongoose.Schema;

// Create Schema
const UserMate = new Schema({
  number: {
    type: Number,
    required: true,
  },
  item: {
    type: String,
    required: true,
  },
  grade: {
    type: Number,
    default: 0,
    required: true,
  },
  prove: {
    type: String,
    default: "nothing",
    required: true,
  },
  module: {
    type: String,
    default: "a",
    required: true,
  },
  order: {
    type: String,
    default: "a1",
    required: true,
  },
});

module.exports = Mate = mongoose.model("usermate", UserMate);
